//
//  MyTeamVC.swift
//  LeGou
//
//  Created by 刘亿前 on 2022/9/16.
//

import UIKit
import LTScrollView

class MyTeamVC: ZMViewController {

    private lazy var layout: LTLayout = {
        let layout = LTLayout()
        layout.titleViewBgColor = .white
        layout.titleSelectColor = Style.mainColor
        layout.bottomLineColor = Style.mainColor
        layout.pageBottomLineColor = .clear
        layout.titleColor = UIColor.zm.color(hexString: "#333333")
//        layout.lrMargin = 12
        layout.sliderWidth = 24
//        layout.titleMargin = 36
        layout.isNeedScale = false
        layout.isAverage = true
        layout.titleFont = UIFont.zm.fontMedium(size: 16)
        layout.showsHorizontalScrollIndicator = false
        return layout
    }()
        
    private lazy var controllers: [ZMViewController] = {
        return [MyRankingVC(), MyFansVC()]
    }()
    
    private let titles = ["我的位置", "我的粉丝"]
    
    private lazy var advancedManager: LTAdvancedManager = {
        let manager = LTAdvancedManager(frame: CGRect(x: 0, y: 0, width: SCREEN_W, height: SCREEN_H - StaNavBarH), viewControllers: controllers, titles: titles, currentViewController: self, layout: layout, headerViewHandle: {
            return UIView()
        })
        manager.backgroundColor = .clear
        return manager
    }()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        title = "创客系统"
        view.addSubview(advancedManager)
    }

}
